package fun.zerone.service.order.controller.order;

import fun.zerone.service.order.biz.order.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by XQL on 2021/4/15.
 */
@RestController
public class OrderController {

    @Autowired
    private OrderService orderService;

    @GetMapping("order/{orderNo}")
    private String hello(@PathVariable("orderNo") String orderNo) {
        return orderService.findByOrderNo(orderNo);
    }

}
